﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Devtm.ServiceModel.Discovery.Collection
{


    public delegate T ResolveGetCollectionEventHandler<T>(object sender, ResolveGetCollectionEventArgs args);


    public interface IFirstChanceCollectionGet<T>
    {

        event ResolveGetCollectionEventHandler<T> FirstChanceResolveGet;

    }

    public class ResolveGetCollectionEventArgs : EventArgs
    {

        public ResolveGetCollectionEventArgs(object key)
        {
            AddReturn = true;
            Key = key;
        }

        public bool AddReturn { get; set; }


        public object Key { get; private set; }
    }


}
